package com.warm.base.design.c_singleton;

/**
 * @Date: 2019/11/21 16:42
 * @Author: LChuang
 * @Description:
 */
public enum EnumSingleton {

    /**
     *  4.1 枚举
     *  *** 最佳的单例实现模式 ***
     */
    INSTANCE;

    private Singleton singleton = null;

    private EnumSingleton(){
        singleton = new Singleton();
    }
    public Singleton getInstance(){
        return singleton;
    }
}
